package net.zjitc.service;

import java.util.List;
import net.zjitc.pojo.CartItem;
import net.zjitc.pojo.Category;
import net.zjitc.pojo.CategorySecond;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/28 16:10
 * @description:
 */
public interface CategoryService {
  List<Category> findAll();

  List<CategorySecond> findAllSecond();

  Category findByCid(Integer cid);

  CategorySecond findByCsid(Integer csid);

  Integer editCategory(Category category);

  Integer editCategorySecond(CategorySecond categorySecond);

  Integer addCategory(String cname);

  Integer addCategorySecond(CategorySecond categorySecond);

  Integer deleteCategory(String cid);

  Integer deleteCategorySecond(String csid);
}
